All Questions
Tagged with executableshell
36 questions
0votes
2answers
300views
access shell alias with dmenu
I have a collection of bash commands (one liners) that I use on a regular basis to open new shells or start programs with a given set of arguments. As I use dmenu, I'd like to be able to use those ...
-1votes
5answers
608views
How to mark things I download automatically executable?
I spend a lot of time downloading things that I am going to execute, without a doubt, after having downloaded them. Out of the 900-ish files in my download folder right now, roughly a third is stuff ...
1vote
1answer
5kviews
ssh to execute remote command under interactive shell
Very similar with Run a command in an interactive shell with ssh after sourcing .bashrc, yet the answer there doesn't work for me. I want to to execute remote command via ssh under the full ...
0votes
1answer
1kviews
Reasonable way to customize ( change ) an executable program's command ( name ) , in terminal
Background Using xfce4-terminal as an example, I want to run the program by just typing term. When I type which xfce4-terminal it returns /usr/bin/xfce4-terminal. So, I created a symbolic link: sudo ...
0votes
2answers
2kviews
Compile a shell script to an executable binary with make
I know shc can convert the shell script to binary, but there is obvious and famous tool to decrypt it. So, I want to find another way to do this. I've heard that make can also convert a shell script ...
4votes
4answers
1kviews
I want to terminate a python script if it doesn’t output anything to the terminal in 2 min
Here's my current bash which is just a loop while true ; do python3 /Users/Name/Desktop/pythoncode.py done I want to terminate pythoncode.py if it doesn’t output anything to the terminal in 2 ...
0votes
3answers
4kviews
File definitely exists. Get "No such file or directory" when trying to run it
This is on Arch Linux. Take a look at this: [saint-llama@hubs bin]$ lsattr --------------e----- ./install_fnp.sh --------------e----- ./toolkitinstall.sh --------------e----- ./FNPLicensingService [...
27votes
8answers
17kviews
Linux shell script: Run a program only if it exists, ignore it if it does not exist
I am programming a Linux shell script that will print status banners during its execution only if the proper tool, say figlet, is installed (this is: reachable on system path). Example: #!/usr/bin/...
1vote
1answer
3kviews
How to list all commands available from $PATH [duplicate]
I would like to list all commands available in $PATH. Any idea ?
3votes
1answer
380views
Can you put multiple executable scripts in one directory, and by sourcing that directory make all of those commands available?
I want to put a bunch of executable scripts in the .command dir (which is also executable), and then only have to source that directory in my .bash_profile. Is this possible? I can get this to work ...
7votes
6answers
4kviews
Fastest way to determine if shebang is present
If I have a file with #!/usr/bin/env foobar what is the fastest/best way to determine if this file has a hashbang? I hear you can just read the first 2 bytes? How?
1vote
1answer
651views
Change the default executable for file with potentially missing shebang
I have a library - users are to create executable files, potentially with a hashbang to tell exec which executable to use. If they omit the hashbang, then I think most systems default to /bin/sh, I ...
1vote
1answer
2kviews
Executing a program gives No such file or folder error [duplicate]
I can't execute a simple executable. The result of ll user@user-SATELLITE-C855-169:~/Bureau/Workspace/buildroot/buildroot/output/host/opt/ext-toolchain/bin$ ll total 16948 drwxr-xr-x 2 user user ...
2votes
2answers
242views
Is there a way to route all commands through a shell script instead of running directly?
I want to be able to have everything being executed, rather than running the program, runs a shell script with the executable as the argument. It'd be nice to be able to do this without having to ...
4votes
2answers
3kviews
The type command can't distinguish between an executable command and a shell script
So I was reading the book The Linux Command Line, and it says that commands are of four types: (1) executable programs (2) shell builtins (3) shell functions (shell scripts) (4) ...